package com.azhoucode.common;


import com.azhoucode.enums.BaseErrorEnum;

public class BaseError {

    private Integer code;

    private String message;


    public BaseError(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public BaseError(BaseErrorEnum baseErrorEnum) {
        this.code = baseErrorEnum.getCode();
        this.message = baseErrorEnum.getMessage();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
